package com.example.springsecurityoauthdemo.vo;

import com.example.springsecurityoauthdemo.entity.SysRole;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.UserDetails;

import java.util.Collection;
import java.util.List;
import java.util.Set;

public class LoginUser implements UserDetails {
    private static final long serialVersionUID = -3685249101751401211L;
    private Set<SysRole> sysRoles;
    //private MenuVo table;
    private List<String> button;
    private Set<String> permissions;
    private String password;
    private String clientId;
    private String uuid;
    private String sysVersion;
    private String model;
    private String devicePhone;
    private String appVersion;
    private String remark;
    private String ip;

    @Override
    public Collection<? extends GrantedAuthority> getAuthorities() {
        return null;
    }

    @Override
    public String getPassword() {
        return null;
    }

    @Override
    public String getUsername() {
        return null;
    }

    @Override
    public boolean isAccountNonExpired() {
        return true;
    }

    @Override
    public boolean isAccountNonLocked() {
        return true;
    }

    @Override
    public boolean isCredentialsNonExpired() {
        return true;
    }

    @Override
    public boolean isEnabled() {
        return true;
    }
}
